﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>开放文档-AVCare统一消息平台</title>
    <link rel="icon" type="image/x-icon" href="img/logo-icon.png">
    <!--<link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" />-->
    <script src="lib/jquery/dist/jquery.min.js" type="text/javascript"></script>
    <script src="lib/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/login.js" type="text/javascript"></script>
    <style>
        body {
            display: block;
            margin: 0px;
        }
        h2,strong,p {
            padding-left: 8px;
        }
    </style>
</head>
<body>
    <div class="doc-content normal">
        <div class=" icms-help-docs-content">
            <main id="2205502066kzd">
                <div style="background: #3785ff;color:white;">
                    <h2 data-tag="title" id="h1-tn0-mz6-ups" class="title doc-h1" documentmark="[object Object]" style="display:inline-block;padding-left:8px;">
                        AVCare统一消息平台
                    </h2>
                    <div class="ant-col" style="margin-left: 0px; display: inline-block; row-gap: 0px; width: 86.3%; text-align: right;">
                        <button type="button" class="ant-btn ant-btn-primary opdf-button opdf-button__undefined "
                                ant-click-animating-without-extra-node="false" style="color: #fff; border-color: rgba(255,255,255, .3); background: rgba(255,255,255, .3); border-radius: 6px; height: 35px;border:0;cursor:pointer;" onclick="loginfoward()">
                            开发者后台
                        </button>
                    </div>
                </div>
                <div data-tag="conbody" outputclass="icms-api-reference" id="conbody-lgq-hy7-ihz"
                     class="icms-api-reference conbody" data-spm-anchor-id="ding_open_doc.document.0.i12.5ee340e9Czqnmg">
                    <section id="section-rqa-yid-tgx" class="section">
                        <h2 data-tag="title" id="title-cpy-3yo-tae" class="title doc-h2" documentdetail="[object Object]">
                            使用场景
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <div type="notice" id="note-sf7-zyw-765" class="note note-notice">
                            <div class="note-icon-wrapper">
                                <i class="icon-note note notice">
                                </i>
                            </div>
                            <div class="noteContentSpan">
                                <strong>
                                    适用于发送通知类的消息
                                </strong>
                            </div>
                        </div>
                    </section>
                    <section id="section-p3w-u0j-ijp" class="section">
                        <h2 data-tag="title" id="title-gsw-aho-dtb" class="title doc-h2" documentdetail="[object Object]">
                            接口使用说明
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <p id="p-b88-vg0-v6l">
                            该接口是异步发送消息，接口返回成功，发送结果请关注开发者后台。
                        </p>
                    </section>
                    <section id="section-base-info" class="section" data-spm-anchor-id="ding_open_doc.document.0.i8.5ee340e9Czqnmg">
                        <h2 data-tag="title" id="h2-kms-9i7-ynw" class="title doc-h2" documentdetail="[object Object]">
                            基本信息
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <p id="p-9yf-2sj-zyx">
                            <b>
                                请求方式
                            </b>
                            ：POST
                        </p>
                        <p id="p-nf5-0lc-e8i">
                            <b>
                                请求地址
                            </b>
                            ：
                            <code data-tag="code" class="code doc-code" style="font-size:16px;color:red;">
                                http://avcbooking.bjuxk.com.cn:7002/api/Message/Send
                                <span role="img" tabindex="-1" class="anticon doc-code-copy">
                                    <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                         class="">
                                        <use xlink:href="#icon-fuzhi">
                                        </use>
                                    </svg>
                                </span>
                            </code>
                        </p>
                    </section>
                    <section id="section-request-query-parameter" class="section">
                        <h2 data-tag="title" id="h2-tmj-x8u-jtu" class="title doc-h2" documentdetail="[object Object]">
                            Header参数
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <div class="doc-table-wrapper no-thead">
                            <table id="table-fj6-mpj-erk" class="table">
                                <colgroup colwidth="1.18*" style="width: 23.68%;">
                                </colgroup>
                                <colgroup colwidth="0.71*" style="width: 14.26%;">
                                </colgroup>
                                <colgroup colwidth="0.47*" style="width: 9.41%;">
                                </colgroup>
                                <colgroup colwidth="0.71*" style="width: 14.26%;">
                                </colgroup>
                                <colgroup colwidth="1.9*" style="width: 38.09%;">
                                </colgroup>
                                <tbody class="tbody">
                                    <tr id="tr-7kv-a4u-2gh">
                                        <td id="td-c09-c1c-8k4" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-4zy-ciq-m3e">
                                                名称
                                            </p>
                                        </td>
                                        <td id="td-ua0-l8y-tpw" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-m6f-uk2-xy6">
                                                类型
                                            </p>
                                        </td>
                                        <td id="td-cx0-r62-1zs" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-yk1-w0v-t39">
                                                是否必填
                                            </p>
                                        </td>
                                        <td id="td-076-wl9-3zt" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-ork-tm8-xab">
                                                示例值
                                            </p>
                                        </td>
                                        <td id="td-k3g-6y3-z8u" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-6l7-5al-2wo">
                                                描述
                                            </p>
                                        </td>
                                    </tr>
                                    <tr id="tr-oce-xf9-agl">
                                        <td id="td-zso-t95-eix" rowspan="1" colspan="1">
                                            <p id="p-8fy-vxp-irg">
                                                token
                                            </p>
                                        </td>
                                        <td id="td-7ax-ei7-muu" rowspan="1" colspan="1">
                                            <p id="p-9rn-09h-f36">
                                                string
                                            </p>
                                        </td>
                                        <td id="td-c42-1kk-upd" rowspan="1" colspan="1">
                                            <p id="p-8b3-ey8-yly">
                                                是
                                            </p>
                                        </td>
                                        <td id="td-ikx-uxo-u67" rowspan="1" colspan="1">
                                            <p id="p-rsf-zrf-8dr">
                                                7ds1xxxx
                                            </p>
                                        </td>
                                        <td id="td-hfb-cn5-8l6" rowspan="1" colspan="1">
                                            <p id="a7d65b50879gm">
                                                调用该接口的应用凭证。
                                            </p>
                                            <ul id="a7d65b5187sfl">
                                                <li id="a7d65b5287jni">
                                                    <p id="a7d65b5387rjn">
                                                        通过
                                                        <a data-tag="xref" baseurl="t2010561_v1_14_0.xdita" id="fa0e556076lb3"
                                                           data-node="3942542" data-root="80928" href="/gettoken.html"
                                                           class="xref doc-preview-card-popover" target="_blank" data-spm-anchor-id="ding_open_doc.document.0.0">
                                                            获取应用的access_token
                                                        </a>
                                                        接口获取。
                                                    </p>
                                                </li>
                                            </ul>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </section>
                    <section id="section-request-body-parameter" class="section">
                        <h2 data-tag="title" id="h2-1bd-lum-eu9" class="title doc-h2" documentdetail="[object Object]">
                            Body参数
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <div class="doc-table-wrapper no-thead">
                            <table id="table-jwj-sox-i2n" class="table">
                                <colgroup colwidth="1.25*" style="width: 25%;">
                                </colgroup>
                                <colgroup colwidth="0.75*" style="width: 15%;">
                                </colgroup>
                                <colgroup colwidth="0.5*" style="width: 10%;">
                                </colgroup>
                                <colgroup colwidth="0.75*" style="width: 15%;">
                                </colgroup>
                                <colgroup colwidth="1.74*" style="width: 34.85%;">
                                </colgroup>
                                <tbody class="tbody">
                                    <tr id="tr-nh1-tcl-6o6">
                                        <td id="td-1zt-wbm-kr5" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-nz0-5u2-hjc">
                                                名称
                                            </p>
                                        </td>
                                        <td id="td-1me-75i-cgq" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-m2c-1qd-2ws">
                                                类型
                                            </p>
                                        </td>
                                        <td id="td-evp-upq-wjq" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-uvm-ydf-ur3">
                                                是否必填
                                            </p>
                                        </td>
                                        <td id="td-06j-ctp-peo" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-vkc-gkt-n2i">
                                                示例值
                                            </p>
                                        </td>
                                        <td id="td-vgl-c5t-nzn" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-lut-6rk-bb0">
                                                描述
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-2" id="tr-4cs-rzb-3ne" class="row row-level-2">
                                        <td id="td-r81-vnp-pcg" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-bue-nix-mup">
                                                source
                                            </p>
                                        </td>
                                        <td id="td-m6f-27k-mjt" rowspan="1" colspan="1">
                                            <p id="p-tf5-x11-i3b">
                                                string
                                            </p>
                                        </td>
                                        <td id="td-38l-pjy-ums" rowspan="1" colspan="1">
                                            <p id="p-5wc-0vg-jyq">
                                                是
                                            </p>
                                        </td>
                                        <td id="td-2eg-v08-j33" rowspan="1" colspan="1">
                                            <p id="p-8eu-syx-fbj">
                                                AVCBooking
                                            </p>
                                        </td>
                                        <td id="td-s50-vff-e7g" rowspan="1" colspan="1">
                                            <p id="p-m3j-qjd-yzh">
                                                接入应用code。
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-3" id="tr-we1-zs0-k2n" class="row row-level-3">
                                        <td id="td-ayi-d55-6kt" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-5mo-hjd-1wl">
                                                msgtype
                                            </p>
                                        </td>
                                        <td id="td-scp-m45-1w5" rowspan="1" colspan="1">
                                            <p id="p-6xo-rw5-a1d">
                                                string
                                            </p>
                                        </td>
                                        <td id="td-qav-itu-bk2" rowspan="1" colspan="1">
                                            <p id="p-z7y-1pi-sna">
                                                是
                                            </p>
                                        </td>
                                        <td id="td-dgb-o4z-fvk" rowspan="1" colspan="1">
                                            <p id="p-n8i-hsk-7kc">
                                                WX_Audit
                                            </p>
                                        </td>
                                        <td id="td-qok-1zw-3q5" rowspan="1" colspan="1">
                                            <p id="p-ax7-hgo-i1e">
                                                消息类型code。
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-3" id="tr-19h-yig-z49" class="row row-level-3">
                                        <td id="td-qjf-85r-zq8" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-axx-qp2-uol">
                                                content
                                            </p>
                                        </td>
                                        <td id="td-bkk-th6-zu9" rowspan="1" colspan="1">
                                            <p id="p-st0-3x8-oe6">
                                                string
                                            </p>
                                        </td>
                                        <td id="td-of9-yke-6yi" rowspan="1" colspan="1">
                                            <p id="p-xga-jyu-1jp">
                                                是
                                            </p>
                                        </td>
                                        <td id="td-ukk-lwj-678" rowspan="1" colspan="1">
                                            <p id="p-50l-mj0-4v6">
                                                <pre style="font-size: 16px;">
{
    "touser": "ouhno0elYRcC6KiFyatpdlrDtg5Y",
    "template_id": "6Nnj82iLfeVLbASTUKgZGnDXyFu7PYxGD4limwHMdWA",
    "url": "114.116.225.208:9300/pages/approval/details?id=123&type=1&clienttype=2",
    "data": {
        "thing1": {
            "value": "张三",
            "color": "#173177"
        },
        "thing2": {
            "value": "博学楼105",
            "color": "#173177"
        },
        "time3": {
            "value": "2024-01-03 13:59:20",
            "color": "#173177"
        }
    }
}
</pre>

                                            </p>
                                        </td>
                                        <td id="td-9gh-gtw-w2y" rowspan="1" colspan="1">
                                            <p id="p-e38-il9-xzl">
                                                消息内容。
                                            </p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </section>
                    <section id="section-response-parameter" class="section">
                        <h2 data-tag="title" id="h2-x08-55e-p9d" class="title doc-h2" documentdetail="[object Object]">
                            返回参数
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <div class="doc-table-wrapper no-thead">
                            <table id="table-pre-g4q-wtk" class="table">
                                <colgroup colwidth="1.2*" style="width: 30%;">
                                </colgroup>
                                <colgroup colwidth="0.8*" style="width: 20%;">
                                </colgroup>
                                <colgroup colwidth="0.8*" style="width: 20%;">
                                </colgroup>
                                <colgroup colwidth="1.2*" style="width: 30%;">
                                </colgroup>
                                <tbody class="tbody">
                                    <tr id="tr-zqk-k0h-8qs">
                                        <td id="td-3jv-3zh-zmd" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-x88-m16-wzb">
                                                名称
                                            </p>
                                        </td>
                                        <td id="td-jp5-o44-iwo" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-5ur-im9-yde">
                                                类型
                                            </p>
                                        </td>
                                        <td id="td-wp6-pu7-dvh" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-m5k-l9w-e2y">
                                                示例值
                                            </p>
                                        </td>
                                        <td id="td-gmq-c0l-cds" rowspan="1" colspan="1" style="background-color: rgb(229, 229, 229);">
                                            <p id="p-kgd-5co-ovd">
                                                描述
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-1" id="tr-oll-8bn-01l" class="row row-level-1">
                                        <td id="td-iia-ei4-seb" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-6uf-jqu-nxg">
                                                code
                                            </p>
                                        </td>
                                        <td id="td-1k0-blz-zrq" rowspan="1" colspan="1">
                                            <p id="p-ez3-9a1-yoh">
                                                int
                                            </p>
                                        </td>
                                        <td id="td-ng0-g3i-kl3" rowspan="1" colspan="1">
                                            <p id="p-dzu-0ah-ass">
                                                1
                                            </p>
                                        </td>
                                        <td id="td-9y8-i1w-55u" rowspan="1" colspan="1">
                                            <p id="p-7gn-cgt-meq">
                                                状态码(1 成功 -1 失败)。
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-1" id="tr-eej-1v5-rxn" class="row row-level-1">
                                        <td id="td-dyf-ff9-wfq" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-uo6-2nm-9qq">
                                                msg
                                            </p>
                                        </td>
                                        <td id="td-9i6-xm4-q2k" rowspan="1" colspan="1" data-spm-anchor-id="ding_open_doc.document.0.i13.5ee340e9Czqnmg">
                                            <p id="p-ww5-caj-juc">
                                                string
                                            </p>
                                        </td>
                                        <td id="td-bw7-m5w-pjq" rowspan="1" colspan="1">
                                            <p id="p-93s-9ol-m7b">
                                                发送成功
                                            </p>
                                        </td>
                                        <td id="td-lx8-ny9-uxv" rowspan="1" colspan="1">
                                            <p id="p-j1d-hn6-xhc">
                                                返回码描述。
                                            </p>
                                        </td>
                                    </tr>
                                    <tr outputclass="row row-level-2" id="tr-p6u-8fz-ava" class="row row-level-2">
                                        <td id="td-nmb-gm1-e0w" rowspan="1" colspan="1" style="padding-left: 10px;">
                                            <p id="p-bu3-meq-1kn">
                                                data
                                            </p>
                                        </td>
                                        <td id="td-7x4-1cy-uw1" rowspan="1" colspan="1">
                                            <p id="p-cco-dvv-a87">
                                                object
                                            </p>
                                        </td>
                                        <td id="td-ngc-u43-4md" rowspan="1" colspan="1">
                                            <p id="p-sro-en8-fp9">
                                                ""
                                            </p>
                                        </td>
                                        <td id="td-rrx-kmw-m5l" rowspan="1" colspan="1">
                                            <p id="p-7vw-nlo-9hw">
                                                返回数据。
                                            </p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </section>
                    <section id="section-sample" class="section">
                        <h2 data-tag="title" id="h2-tjp-4uo-gca" class="title doc-h2" documentdetail="[object Object]">
                            示例
                            <span role="img" tabindex="-1" class="anticon doc-h2-hash">
                                <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                     class="">
                                    <use xlink:href="#icon-a-lianjiebeifen2">
                                    </use>
                                </svg>
                            </span>
                        </h2>
                        <p id="p-nj6-r93-ydm">
                            <b>
                                请求示例（HTTP）
                            </b>
                        </p>
                        <p id="p-nf5-0lc-e8i">
                            <code data-tag="code" class="code doc-code" style="font-size: 16px;">
                                http://114.116.225.208:7001/api/Message/Send
                                <span role="img" tabindex="-1" class="anticon doc-code-copy">
                                    <svg width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false"
                                         class="">
                                        <use xlink:href="#icon-fuzhi">
                                        </use>
                                    </svg>
                                </span>
                            </code>
                        </p>
                        <p id="p-nj6-r93-ydm">
                            <b>
                                请求正文
                            </b>
                        </p>
                        <p id="p-nf5-0lc-e8i">
                            <code data-tag="code" class="code doc-code">
                                <pre style="font-size: 16px;">
{
    "Source": "AVCBooking",
    "Msgtype": "WX_Audit",
    "Content": "{ \"touser\": \"ouhno0elYRcC6KiFyatpdlrDtg5Y\", \"template_id\": \"6Nnj82iLfeVLbASTUKgZGnDXyFu7PYxGD4limwHMdWA\", \"url\": \"114.116.225.208:9300/pages/approval/details?id=123&type=1&clienttype=2\", \"data\": { \"thing1\": { \"value\": \"李旭\", \"color\": \"#173177\" }, \"thing2\": { \"value\": \"博学楼105\", \"color\": \"#173177\" }, \"time3\": { \"value\": \"2024-01-03 13:59:20\", \"color\": \"#173177\" } } }"
}
                                </pre>
                            </code>
                        </p>
                        <p id="p-nj6-r93-ydm">
                            <b>
                                返回示例
                            </b>
                        </p>
                        <p id="p-nf5-0lc-e8i">
                            <code data-tag="code" class="code doc-code">
                                <pre style="font-size: 16px;">
{
    "code": 1,
    "msg": "发送成功",
    "data": ""
}
                                </pre>
                            </code>
                        </p>
                    </section>
                </div>
            </main>
        </div>
    </div>
</body>

</html>